{{tag>Edubuntu ltsp vnc}}

====== Edubuntu : contrôler l'activité d'un client léger ======

**Niveau :** technique

Page en cours de traduction de [[https://wiki.edubuntu.org/InstallX11VncOnLtspClients]].



===== Installation de x11vnc pour les clients LTSP =====


This is the quick HowTo to get x11vnc running on thin clients so you can connect to them using a vncviewer or the thin client manager app. note that this doc doesnt take security into account, if you want a safe solution enable a password for x11vnc.
>L'installation de x11vnc vous permettra de vous connecter sur la session des clients légers LTSP avec l'utilitaire VNCviewer ou le gestionnaire de client léger (menu //Système > Administration > Gestionnaire// ) pour ceux qui utilisent un serveur Edubuntu. Pour la sécurité, pensez à mettre un mot de passe pour les sessions x11vnc.

First of all lets chroot into the ltsp client environment on the server.

>Il faut se mettre dans l'environnement "chroot" des clients LTSP.

  sudo cp /etc/apt/sources.list /opt/ltsp/i386/etc/apt/sources.list
  sudo chroot /opt/ltsp/i386
  apt-get update


Install the x11vnc package:
>Installation du paquet x11vnc

  apt-get install x11vnc

Now edit the rc.local file to add x11vnc to the system startup
>Maintenant éditez le fichier rc.local pour activer x11vnc au démarrage

  vi /etc/rc.local

Add the following line before the exit 0 statement in this file and save it:
>Ajoutez la ligne suivante avant la commande //exit 0// puis sauvegardez:

  x11vnc -display :0 -forever -bg -auth /var/lib/gdm/:0.Xauth

Now lets make sure rc.local gets actually executed:
>Maintenant pour l'activation du service tapez les commandes:

  cd /etc/rc2.d
  mv K99rc.local S99rc.local

Pour sortir de l'environnement "chroot" des clients légers, tapez:

  exit

Reboot your thin clients and you should be able to connect to them via vnc now.
>Redémarrez vos clients légers et connectez vous sur les sessions via vnc.